package com.xc.h05.controller.changlongfei;

import com.xc.h05.service.changlongfei.OnlineCoursesService;
import com.xc.h05.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/courseHomepage")
//课程主页
public class CourseHomepageController {
    @Autowired
    OnlineCoursesService onlineCoursesService;
    //    综合排序
    @GetMapping("/getCourseOrderBy")
    public R getCourseOrderBy(int pageNum, int pageSize){
        return R.ok(onlineCoursesService.getCourseOrderBy(pageNum,pageSize));
    }
}
